package com.sayimo.maker.activity.dao;

import java.util.List;
import java.util.Map;

import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.activity.vo.BaseCutDetail;


/**
 * @Copyright (c) 2016 广东省尚一互联网有限公司
 * @Project: schoolmallapi-2.0
 * @ClassName: BaseCutDetailDao.java
 * @Description: 砍价详情
 * @Author:	tanxin
 * @Date:2016年10月19日,下午3:38:12
 * @Version 1.0.0
 */
public interface BaseCutDetailDao {
		//根据标示符查询活动信息
		@SuppressWarnings({ "rawtypes"})
		public List<BaseCutDetail> selectBaseCutDetailByIdentifier(Map<String,Object> map) throws DaoException;
		public List<BaseCutDetail> selectBaseCutDetailJoinByCustomerId(Map<String,Object> map) throws DaoException;
		public Integer addCutDetail(BaseCutDetail baseCutDetail) throws DaoException;
		public Integer updateCutDetail(BaseCutDetail baseCutDetail) throws DaoException;
		
		public Integer addCutJoin(BaseCutDetail baseCutDetail) throws DaoException;
		/**
		 * @Package com.sayimo.maker.activity.module.dao
		 * @Author TANXIN
		 * @MethodName:getCustomerCutPriceGoodsBuy
		 * @Description:获取会员在该砍价活动购买商品总数
		 * @param customerId
		 * @param identifier
		 * @return
		 * @throws DaoException
		 * @Date 2017年1月6日,上午10:36:00
		 */
		public Integer getCustomerCutPriceGoodsBuy(Integer customerId,String identifier) throws DaoException;
		/**
		 * @Package com.sayimo.maker.activity.module.dao
		 * @Author TANXIN
		 * @MethodName:getPreCustomerCutPriceGoodsBuy
		 * @Description:获取会员在该活动购买商品总数
		 * @param customerId
		 * @param identifier
		 * @return
		 * @throws DaoException
		 * @Date 2017年1月6日,上午10:43:16
		 */
		public Integer getPreCustomerCutPriceGoodsBuy(Integer customerId,String identifier) throws DaoException;
}
